/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.synjones.zeuscloudserver.util;

import java.util.Map;

/*
 * utility for string
 */
public final class StringUtil
{
	/**
	 * check String is null or empty
	*/
	public static boolean isNullOrEmpty(String str)
	{
		return str == null || str.isEmpty();
	}
	
	public static String getSortedValue(Map<String,String> map)
	{
		StringBuilder sb = new StringBuilder();
		map.keySet().stream().sorted().forEach(
			(String key) ->
			{
				sb.append(map.get(key));
			});
		return sb.toString();
	}
}